package adv.np.pViaggianti.view.gwt.client.authentication;
//TODO CLASSE INCOMPLETA
/**
 * <p>
 * CLASSE INCOMPLETA
 * </p>
 *
 * @author  Giovanni Dall'Oglio Risso
 */
public class AuthorizationProvider {

	private static AuthenticationInfo authInfo = null;

	public static void setAuthInfo(AuthenticationInfo authInfo) {
		AuthorizationProvider.authInfo = authInfo;
	}

	public static AuthenticationInfo getAuthInfo() {
		return authInfo;
	}
	
	public static boolean isLogged(){
		return getAuthInfo() != null;
	}
	public static void logOut() {
		setAuthInfo(null);
	}
	
}
